package com.jikangjun.disk.recycle.service;

import com.jikangjun.disk.mybatis.flexigrid.PagingEntity;
import com.jikangjun.disk.mybatis.flexigrid.TblResponseEntity;
import com.jikangjun.disk.recycle.entity.RecycleFileEntity;
import com.jikangjun.disk.recycle.entity.SearchRecycleEntity;

public interface RecycleService {
    /**
     * 分页查询回收站文件列表
     * @param entity
     * @param paging
     * @return
     */
    TblResponseEntity<RecycleFileEntity> queryRecycleFilesByPage(SearchRecycleEntity entity, PagingEntity paging);

    /**
     * 恢复单个文件
     * @param fileId
     */
    void recoverFile(String fileId);

    /**
     * 批量恢复文件
     * @param fileIds
     */
    void batchRecoverFiles(String fileIds);

    /**
     * 永久删除文件
     * @param fileIds
     */
    void permanentDelete(String fileIds);
    /**
     * 清空回收站
     */
    void emptyRecycleBin();
}
